/*
 * @Author: jinye.zhang
 * @Version: 1.0.0
 * @LastEditors: jinye.zhang
 * @Description: new file
 */
import Vue from 'vue'
import App from './App'
import color from './utils/color.js'

// 引入uView前端框架
import uView from 'uview-ui';
Vue.use(uView);

// #ifdef H5
let jweixin = require('jweixin-module');
Vue.prototype.$wechat = jweixin;
// #endif

const $t = {
  color,
}
Vue.prototype.$t = $t

Vue.prototype.showSuccessToast = function(title,icon,duration){
	uni.showToast({
		title: title,
		duration: duration || 2000,
		icon: icon || 'none',
		mask: false
	});
}

Vue.prototype.isEntry = function(str){
	if(typeof str == "undefined" || str == null || str == ""){
        return true;
    }else{
        return false;
    }
}

// 引入store
import store from './store'
Vue.prototype.$store = store;

Vue.config.productionTip = false;

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
